import service from "@/api/index";
//客户信息管理接口
const COMPANY_INFO_API = "/api/PermissionManagement/";
export default {
	AddCompanyInfo: (data: any) => {
		//新增客户信息
		return service.post(`${COMPANY_INFO_API}AddCompanyInfo`, data);
	},
	GetCompanyInfoList: (data: any) => {
		//分页获取客户信息列表
		return service.post(`${COMPANY_INFO_API}GetCompanyInfoListPage`, data);
	},
	GetCompanyNameList: () => {
		//获取客户名称集合
		return service.post(`${COMPANY_INFO_API}GetCompanyNameList`);
	},
	IsStatesCompanyInfo: (data: any) => {
		//禁用/启用客户信息
		return service.post(`${COMPANY_INFO_API}IsStatesCompanyInfo`, data);
	},
	CompanyRenewal: (data: any) => {
		//续期
		return service.post(`${COMPANY_INFO_API}CompanyRenewal`, data);
	},
	GetCompanyTypeInfoList: () => {
		//获取客户类型列表数据
		return service.post(`${COMPANY_INFO_API}GetCompanyTypeInfoList`);
	},
	// GetAuthorizationList: (data: any) => {
	// 	//获取授权信息列表返回
	// 	return service.post(`${COMPANY_INFO_API}GetAuthorizationList`, data);
	// },
	GetAuthorizationDetailedInfoList: (data: any) => {
		//授权审核信息查询
		return service.post(`${COMPANY_INFO_API}GetAuthorizationDetailedInfoList`, data);
	},
	GetAuthorizationCompanyInfo: (data: any) => {
		//获取授权商户信息
		return service.post(`${COMPANY_INFO_API}GetAuthorizationCompanyInfo`, data);
	},
	GetAuthorizationCode: (data: any) => {
		//获取授权码
		return service.post(`${COMPANY_INFO_API}GetAuthorizationCode`, data);
	},
	AuthorizationSteats: (data: any) => {
		//批量/单个审核
		return service.post(`${COMPANY_INFO_API}AuthorizationSteats`, data);
	},
	GetCompanyInfo: (data: any) => {
		//根据Id获取客户相关信息
		return service.post(`${COMPANY_INFO_API}GetCompanyInfo`, data);
	},
	UpdateCompanyInfo: (data: any) => {
		//更改商户信息
		return service.post(`${COMPANY_INFO_API}UpdateCompanyInfo`, data);
	},
	GetAuthorizationCodeApi: (data: any) => {
		//获取授权码
		return service.post(`${COMPANY_INFO_API}GetAuthorizationCode`, data);
	},
	AuthorizationVerificationPasswordApi: (data: any) => {
		//验证商户授权密码
		return service.post(`${COMPANY_INFO_API}AuthorizationVerificationPassword`, data);
	},
	SendMessageApi: (data: any) => {
		//获取授权码
		return service.post(`/api/Sms/SendMessage`, data);
	}
};
